extends "DongHuaPlayerFather.gd"

var list=[]
var index=1
var players=[]



func play(list_):
	list=list_
	index=1
	if list.size()<=1:
		emit_signal("complete")
	else:
		playSingle()
	
func playSingle():
	var player=splitDongHua(list[index])
	players.append(player)
func onChildComplete():
	index+=1
	if index<list.size():
		playSingle()
	else:
		emit_signal("complete")